package com.gzhryc.common.api;

import java.io.Serializable;

public class SecurityResponse<T extends Serializable> implements Serializable {

	private static final long serialVersionUID = 1L;
	
	protected Integer code;
    protected String msg;
    protected T body;

    public SecurityResponse(){
        this.code = 200;
    }

    public SecurityResponse(Integer code){
        this.code = code;
    }

    public SecurityResponse(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	
	public void setCode(Integer code,String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
